package com.yix.admin.modules.system.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author wdx
 * @version 1.0
 * @Description TODO
 * @date 2021/1/28 16:08
 */
@Entity
@Data
@NoArgsConstructor
@Table(name="roles_depts")
@org.hibernate.annotations.Table(appliesTo = "roles_depts",comment = "角色部门关联表")
public class RolesDepts implements Serializable {
    @Id
    @Column(name = "role_id",columnDefinition = "varchar(32) COMMENT '菜单ID'")
    @ApiModelProperty(value = "菜单ID")
    private String roleId;
    @Id
    @Column(name = "dept_id",columnDefinition = "varchar(32) COMMENT '角色ID'")
    @ApiModelProperty(value = "角色ID")
    private String DeptId;
}
